package com.ytc.system.api;

import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.commons.model.vo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("xc-system-service")
public interface SystemClient {
    @GetMapping("/user/{id}")
    ResponseResult<User> findById(@PathVariable("id") Long id);
}
